<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改入库记录')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-inRecord-edit" th:object="${billInRecord}">
        <input id="billInRecordId" name="billInRecordId" th:field="*{billInRecordId}"  type="hidden">

        <div class="form-group">
            <label class="col-sm-3 control-label">箱号：</label>
            <div class="col-sm-8">
                <input id="boxCode" name="boxCode" th:field="*{boxCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">批次：</label>
            <div class="col-sm-8">
                <input id="batch" name="batch" th:field="*{batch}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">接收数量：</label>
            <div class="col-sm-8">
                <input id="acceptQuantity" name="acceptQuantity" th:field="*{acceptQuantity}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">接收日期：</label>
            <div class="col-sm-8">
                <input id="acceptTime" name="acceptTime" th:field="*{acceptTime}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "billInRecord";
    $("#form-inRecord-edit").validate({
        rules:{
            xxxx:{
                required:true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-inRecord-edit').serialize());
        }
    }
</script>
</body>
</html>
